cmake_minimum_required(VERSION 3.1)

project(lv_media_player)

include_directories(
        .
        freetype/include
        libdrm/include/drm
        lv_100ask_demos-master
)
add_subdirectory(lvgl)
add_subdirectory(lv_drivers)

add_compile_options(-O3 -g -flto)

add_executable(${PROJECT_NAME} main.c mouse_cursor_icon.c)
target_link_libraries(${PROJECT_NAME} PRIVATE lvgl lvgl_drivers freetype mpv asound)

add_executable(keytest key_test.c)
add_executable(mpvtest mpv_test.c)
target_link_libraries(mpvtest PRIVATE mpv asound)